package com.shao.onlinepdf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 文档样式关系表
 * </p>
 *
 * @author admin
 * @since 2021-09-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TDocumentStyle extends Model<TDocumentStyle> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "document_style_id", type = IdType.ASSIGN_ID)
    private Long documentStyleId;

    /** 文档id */
    private Long documentId;

    /** 样式id */
    private Long styleId;


    @Override
    protected Serializable pkVal() {
        return this.documentStyleId;
    }

}
